package org.darkforest.common.services.impl;

import org.darkforest.common.services.StoreMsgTplService;
import org.darkforest.dao.mapper.StoreMsgTplMapper;
import org.darkforest.model.StoreMsg;
import org.darkforest.model.StoreMsgTpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2015/12/7.
 */
@Service
public class StoreMsgTplServiceImpl implements StoreMsgTplService {

    @Autowired
    private StoreMsgTplMapper storeMsgTplMapper;

    @Override
    public int deleteByPrimaryKey(String smtCode) {
        return storeMsgTplMapper.deleteByPrimaryKey(smtCode);
    }

    @Override
    public int insert(StoreMsgTpl record) {
        return storeMsgTplMapper.insert(record);
    }

    @Override
    public int insertSelective(StoreMsgTpl record) {
        return storeMsgTplMapper.insertSelective(record);
    }

    @Override
    public StoreMsgTpl selectByPrimaryKey(String smtCode) {
        return storeMsgTplMapper.selectByPrimaryKey(smtCode);
    }

    @Override
    public int updateByPrimaryKeySelective(StoreMsgTpl record) {
        return storeMsgTplMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(StoreMsgTpl record) {
        return storeMsgTplMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(StoreMsgTpl record) {
        return storeMsgTplMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<StoreMsgTpl> findStoreMsgTplListByCondition(StoreMsgTpl storeMsgTpl) {
        return storeMsgTplMapper.findStoreMsgTplListByCondition(storeMsgTpl);
    }


}
